#include "raft_core/ApplyMsg.h"

bool raft::core::ApplyMsg::is_command_valid() const {
    return command_valid_;
}
void raft::core::ApplyMsg::set_command_valid(bool command_valid) {
    command_valid_ = command_valid;
}

const std::string &raft::core::ApplyMsg::get_command() const {
    return command_;
}

void raft::core::ApplyMsg::set_command(const std::string &command) {
    command_ = command;
}

int raft::core::ApplyMsg::get_commint_index() const {
    return commit_index_;
}

void raft::core::ApplyMsg::set_commint_index(int commint_index) {
    commit_index_ = commint_index;
}

bool raft::core::ApplyMsg::is_snapshot_valid() const {
    return snapshot_valid_;
}

void raft::core::ApplyMsg::set_snapshot_valid(bool snapshot_valid) {
    snapshot_valid_ = snapshot_valid;
}

const std::string &raft::core::ApplyMsg::get_snapshot() const {
    return snapshot_;
}

void raft::core::ApplyMsg::set_snapshot(const std::string &snapshot) {
    snapshot_ = snapshot;
}

int raft::core::ApplyMsg::get_snapshot_term() const {
    return snapshot_term_;
}

void raft::core::ApplyMsg::set_snapshot_term(int snapshot_term) {
    snapshot_term_ = snapshot_term;
}

int raft::core::ApplyMsg::get_snapshot_index() const {
    return snapshot_index_;
}

void raft::core::ApplyMsg::set_snapshot_index(int snapshot_index) {
    snapshot_index_ = snapshot_index;
}